FROM centos:7
MAINTAINER "nancal"

ADD Centos-7.repo /etc/yum.repos.d/
ADD epel-7.repo /etc/yum.repos.d/

RUN echo "Asia/Shanghai" > /etc/timezone  \
    && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && systemctl disable firewalld \
    && systemctl stop firewalld  \
    && echo "安装组件" \
    && yum install -y htop net-tools vi curl   wget \
    && echo "* soft nofile 65535" >> /etc/security/limits.conf \
    && echo "* hard nofile 65535" >> /etc/security/limits.conf

CMD [ "/usr/sbin/init"]

# docker build -t centos7 -f ./centos7.Dockerfile .